package online.sanen.mhdt.entity.equip;

import online.sanen.mhdt.RandomeTool;
import online.sanen.mhdt.entity.attr.AP;
import online.sanen.mhdt.entity.attr.MAGDEF;

/**
 * 项链
 */
public abstract class Necklace extends Equip{
    protected AP ap;
    protected MAGDEF magDef;
    /**
     * 装备属性取值范围
     */
    protected int minAp;
    protected int maxAp;
    protected int minMagDef;
    protected int maxMagDef;
    protected void initBaseAttr() {
        ap = new AP(RandomeTool.equipBaseAttr(minAp, maxAp));
        magDef=new MAGDEF(RandomeTool.equipBaseAttr(minMagDef, maxMagDef));
    }

    public AP getAp() {
        return ap;
    }

    public void setAp(AP ap) {
        this.ap = ap;
    }

    public int getMinAp() {
        return minAp;
    }

    public void setMinAp(int minAp) {
        this.minAp = minAp;
    }

    public int getMaxAp() {
        return maxAp;
    }

    public void setMaxAp(int maxAp) {
        this.maxAp = maxAp;
    }

    public MAGDEF getMagDef() {
        return magDef;
    }

    public void setMagDef(MAGDEF magDef) {
        this.magDef = magDef;
    }

    public int getMinMagDef() {
        return minMagDef;
    }

    public void setMinMagDef(int minMagDef) {
        this.minMagDef = minMagDef;
    }

    public int getMaxMagDef() {
        return maxMagDef;
    }

    public void setMaxMagDef(int maxMagDef) {
        this.maxMagDef = maxMagDef;
    }
}
